package com.polimi.meteocal.business.util;

import java.util.Calendar;
import java.util.Date;

public class DateFormatter {
	
	public Date getDate(Date date){
		//Calendar Instances
		Calendar dateC= Calendar.getInstance();
		dateC.setTime(date);
		
		dateC.set(java.util.Calendar.HOUR_OF_DAY, 00);
		dateC.set(java.util.Calendar.MINUTE, 00);
		dateC.set(java.util.Calendar.SECOND, 00);
		
		Date d= dateC.getTime();
		return d;
	}	
}
